package com.jic.manager.mapper;

import com.jic.manager.entity.ChannelCategory;
import com.jic.conf.request.ChannelRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 渠道类目关联表
 * @author : 
 * @email : 
 * @since : 2020-02-07 04:29:32
 * @version : v1.0.0
 */
@Mapper
public interface  ChannelCategoryMapper {

    long insert(ChannelRequest channelCategory);

    long delete(Long id);

    long update(ChannelRequest channelCategory);

    ChannelCategory queryByPrimaryKey(Long id);

    List<ChannelCategory> query(ChannelCategory channelCategory);

    List<ChannelCategory> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("channelCategory") ChannelCategory channelCategory);

    long queryPageCount(ChannelCategory channelCategory);
}